# -*- coding:utf-8 -*-
__author__ = 'shuxin'
__date__ = '2020/7/14  17:08'

import json

from django.http import HttpResponse
from django.views import View


class CreateCardView(View):
    def post(self, request):
        info = {"code": "000000",
                "message": "请求成功",
                "requestId": None,
                "data": {
                    "customerTransId": "A027_trans-001",
                    "businessOrderNo": "",
                    "messageDigest": "9698b5c9b556e937494c96d11ef9afa9",
                    "vanInfo": "Ed2/d8aHIxIVA7VuhmC4dO5N1om+b3RoX7uOgbGOFWsdqJIoywQkjl0nwzqZVWjxNi5aAd9EHrr3tZBFTqEsrGXLq4Kgww3dGaYW3mD9WzyFWinWJ2g9AVVdEhFLwpURqflD1r4SJKMhZidJjhXrvFy9Hj6YksmCaFwKKknye9dS66CVo+lWI92OdxzREl3w2w0/GwmzTI3UjpQvnCLVYrdoOEydBmV1P6lhYOHWmaLB8YnPR2wWUJpkHq0Pcg/VwYCT/iGJXp1xNqwMPGGZRQ==",
                    "customerCode": "A027",
                    "customerData": ""}}

        return HttpResponse(json.dumps(info, ensure_ascii=False), content_type="application/json")
